/*
 * XML Type:  LineItem
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.LineItem
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML LineItem(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class LineItemImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.ofx.types.x2003.x04.LineItem
{
    
    public LineItemImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName LITMAMT$0 = 
        new javax.xml.namespace.QName("", "LITMAMT");
    private static final javax.xml.namespace.QName LITMDESC$2 = 
        new javax.xml.namespace.QName("", "LITMDESC");
    
    
    /**
     * Gets the "LITMAMT" element
     */
    public java.lang.String getLITMAMT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LITMAMT$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "LITMAMT" element
     */
    public net.ofx.types.x2003.x04.AmountType xgetLITMAMT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(LITMAMT$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "LITMAMT" element
     */
    public void setLITMAMT(java.lang.String litmamt)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LITMAMT$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(LITMAMT$0);
            }
            target.setStringValue(litmamt);
        }
    }
    
    /**
     * Sets (as xml) the "LITMAMT" element
     */
    public void xsetLITMAMT(net.ofx.types.x2003.x04.AmountType litmamt)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(LITMAMT$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.AmountType)get_store().add_element_user(LITMAMT$0);
            }
            target.set(litmamt);
        }
    }
    
    /**
     * Gets the "LITMDESC" element
     */
    public java.lang.String getLITMDESC()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LITMDESC$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "LITMDESC" element
     */
    public net.ofx.types.x2003.x04.ShortMessageType xgetLITMDESC()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ShortMessageType target = null;
            target = (net.ofx.types.x2003.x04.ShortMessageType)get_store().find_element_user(LITMDESC$2, 0);
            return target;
        }
    }
    
    /**
     * Sets the "LITMDESC" element
     */
    public void setLITMDESC(java.lang.String litmdesc)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LITMDESC$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(LITMDESC$2);
            }
            target.setStringValue(litmdesc);
        }
    }
    
    /**
     * Sets (as xml) the "LITMDESC" element
     */
    public void xsetLITMDESC(net.ofx.types.x2003.x04.ShortMessageType litmdesc)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ShortMessageType target = null;
            target = (net.ofx.types.x2003.x04.ShortMessageType)get_store().find_element_user(LITMDESC$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.ShortMessageType)get_store().add_element_user(LITMDESC$2);
            }
            target.set(litmdesc);
        }
    }
}
